<?php
    include 'base.php';

    $id = $_POST['id'];

    $sql = "DELETE FROM `goods` WHERE `id`=$id";

    $res = $conn -> query($sql);

    echo json_encode(array(
        'code' => 0,
        'msg' => "删除成功"
    ));
?>